<?php
//session_start();
//ob_start();
include('header.php');
include('menu.php');
include("connection/connection.php");

$loginid=$_SESSION['loginid'];

 $id=$_REQUEST['id'];
		  if($_REQUEST['id']!='')
		  {
		 $update_query=mysql_query("UPDATE tbl_dtls_compose SET status ='0' where id = '$id'");
		  }
?>

<table border="0" width="76%" id="table21" height="74" cellspacing="1">
				         <tr bgcolor="#FF9966" height="29">
				            <td bgcolor="#FF9966" align="left" valign="top">&nbsp;</td>
								  <td bgcolor="#FF9966" align="left" valign="top">&nbsp;</td>
								  <td bgcolor="#FF9966" align="left" valign="top" colspan="5">&nbsp;</td>
				    </tr>
				          <tr>
				            <td bgcolor="#E5E5E5" align="left" valign="top" width="1%">&nbsp;</td>
								  <td bgcolor="#E5E5E5" align="left" valign="top" width="5%">
							      <img border="0" src="images/my_pag2.jpg"></td>
								  <td bgcolor="#E5E5E5" align="left" width="91%" colspan="5">&nbsp;
							      <span lang="en-us"><font color="#003333">Go back to <a href="inbox.php" style="text-decoration:none">inbox</a></font></span></td>
						  </tr>
				          <tr>
				            <td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
								  <td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
								  <td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
								  <td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
								  <td bgcolor="#E5E5E5" align="left" valign="top" width="7%">
								    <p align="right"></td>
								  <td bgcolor="#E5E5E5" align="left" valign="top" width="11%">
								    <p align="right">
								      <font color="#000000" face="Verdana">
						            <span style="font-size: 8.5pt">&nbsp;</span></font></td>
								  <td bgcolor="#E5E5E5" align="left" valign="top" width="8%">&nbsp;</td>
						  </tr>
				          <tr>
				            <td bgcolor="#E5E5E5" align="left" valign="top" colspan="7">
				              <span style="font-size: 3pt" lang="en-us">&nbsp;</span></td>
				    </tr>
				          <tr>
				            <td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
								  <td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
								  <td bgcolor="#E5E5E5" align="left" valign="top" colspan="5" bordercolor="#F2F2F2">
								  <?php
		 $sql_file="select * from tbl_dtls_compose where id='$id'";
		$rs_file=mysql_query($sql_file);
		 $row_file=mysql_fetch_array($rs_file);
				?>
								    <table border="0" width="100%" id="table22" bordercolor="#FFFFFF" cellspacing="0">
								      <tr>
								        <td width="34%"><b>
								          <font color="#000000" face="Verdana">
							              <span style="font-size: 8.5pt">						              </span></font><span lang="en-us">
						                  <font face="Verdana" style="font-size: 8.5pt" color="#000000">
					                     (Sender)<?php echo $row_file['sender'];?></font></span></b></td>
									    <td width="38%">&nbsp;</td>
									    <td width="26%">
									      <font color="#000000" face="Verdana">
									      <span style="font-size: 8.5pt; font-weight: 700">
							            <?php echo $row_file['post_time'];?><span lang="en-us"> (Date)</span></span></font></td>
									  </tr>
								      <tr>
								        <td colspan="3" bgcolor="#F2F2F2">
							            <span style="font-size: 2pt" lang="en-us">&nbsp;</span></td>
									  </tr>
								      <tr>
								        <td colspan="3">
								          
									    </td>
									  </tr>
								      <tr>
								        <td colspan="3"><font face="Verdana" style="font-size: 8.5pt" color="#000000"><?php echo $row_file['message'];?></font></td>
									  </tr>
									  <tr>
								        <td colspan="3">&nbsp;</td>
									  </tr>
									  <tr>
								        <td colspan="3" align="right">
										&nbsp;&nbsp;</td>
									  </tr>
								      <tr>
								        <td colspan="3">&nbsp;
										</td>
									  </tr>
							        </table>								  </td>
				    </tr>
				          <tr>
				            <td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
								  <td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
								  <td bgcolor="#E5E5E5" align="left" valign="top" colspan="5"><a href="../../shimla/user/compose.php" style="text-decoration:none">
								          <font style="font-size: 8.5pt" color="#000000" face="Verdana">
						                <b>Reply</b></font></a><font style="font-size: 8.5pt">&nbsp;&nbsp;</font></td>
						  </tr>
</table>
						 